package com.yz.service;

import com.yz.entity.Provider;
import com.yz.mapper.ProviderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProviderService {

    @Autowired
    ProviderMapper providerMapper;

    public List<Provider> getAll(){
        List<Provider> providers = providerMapper.selectAll();
        return providers;
    }
}
